package com.example.lizhanqi.livevideo.ui.activity;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.ImageButton;

import com.example.lizhanqi.livevideo.R;

public class LoginsActivity extends AppCompatActivity implements View.OnClickListener {

    private ImageButton imb_wx;
    private ImageButton imb_qq;
    private ImageButton imb_ph;
    private ImageButton imb_wb;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_logins);
        initView();
    }

    private void initView() {
        imb_wx = (ImageButton) findViewById(R.id.imb_wx);
        imb_qq = (ImageButton) findViewById(R.id.imb_qq);
        imb_ph = (ImageButton) findViewById(R.id.imb_ph);
        imb_wb = (ImageButton) findViewById(R.id.imb_wb);

        imb_wx.setOnClickListener(this);
        imb_qq.setOnClickListener(this);
        imb_ph.setOnClickListener(this);
        imb_wb.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.imb_wx:

                break;
            case R.id.imb_qq:

                break;
            case R.id.imb_ph:
                startActivity(new Intent(this, PHLoginActivity.class));
                break;
            case R.id.imb_wb:

                break;
        }
    }
}
